

export function setStorage(key, item){
  if(typeof item === "object"){
    return localStorage.setItem(key, JSON.stringify(item))
  }else{
    return localStorage.setItem(key, item)
  }
}



export function getStorage(key){
  return JSON.parse(
    localStorage.getItem(key)
  )
}

export function removeStorage(key){
  return localStorage.removeItem(key)
}

export function clearStorage(){
  return localStorage.clear()
}